{extend name="Base/common"/}
{block name="style"}
<style type="text/css">
	a{
		cursor: pointer;
	}
	.unpay{
		color: red;
	}
</style>
{/block}


{block name="left"}
<div class="title">{:get_username()}</div>
<div>
	<table class="table">
		<thead>
			<tr>
				<th>订单号</th>
                <th>金额</th>
                <th>时间</th>
                <th>是否支付</th>
			</tr>
		</thead>
		<tbody>
			{volist id='item' name="orders"}
				<tr>
					<td><a href="{:url('order?no='.$item['number'])}">{$item.number}</a></td>
                    <td>{$item.amount}</td>
                    <td>{$item.create_time|date='Y-m-d H:i',###}</td>
                    <td class="{$item.ispay == 1?'':'unpay'}">{$item.ispay == 1?'已支付':'未支付'}</td>
				</tr>
			{/volist}
		</tbody>
	</table>
</div>
{/block}

{block name="script"}
{/block}
